package com.work.service.main;

import com.work.dto.main.TallyMachineSearchDTO;
import com.work.dto.main.TallyMachineSubmitDTO;
import com.work.entity.main.TallyMachine;
import com.work.vo.main.TallyMachineKindVO;
import org.springblade.core.mp.base.BaseService;

import java.util.List;

/**
 * 理货机械接口
 *
 * @author ：dujianyu
 * @since ：Created in 2024/5/21 14:14
 */
public interface ITallyMachineService extends BaseService<TallyMachine> {

    /**
     * 理货工班机械树形
     * @param dto 搜索条件
     * @return List<TallyMachineKindVO>
     * @author dujianyu
     * @since 2024/5/21 14:24
     */
    List<TallyMachineKindVO> selectTallyMachineTree(TallyMachineSearchDTO dto);

    /**
     * 批量保存理货机械
     * @param dto 数据
     * @param tallyId 理货ID
     * @return Boolean
     * @author dujianyu
     * @since 2024/5/21 14:31
     */
    Boolean submitTallyMachineBatch(Long tallyId, List<TallyMachineSubmitDTO> dto);

    /**
     * 根据理货ID删除理货机械
     * @param tallyId 理货ID
     * @return Boolean
     * @author dujianyu
     * @since 2024/5/21 14:33
     */
    Boolean removeTallyMachineByTallyId(Long tallyId);

}
